<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>History Page</title>
<%@include file="/common.jsp"%>
<style type="text/css">
		table { border-collapse:collapse; border:solid 1px black; }
        table th, table td { height:20px; border:solid 1px Black; padding: 10px; }
</style>
</head>
<body text-align="center">
	<div style="text-align: center"><font style="font-size: 28px">History Page</font></div>
	<hr>
	<div style="margin:0px auto;">
		<table align="center">
			<tr>
				<th>Name</th>
				<th>Head</th>
				<th>ID Card</th>
				<th>Address</th>
				<th>Status</th>
				<th>Is Ban</th>
				<th>Reason</th>
			</tr>
			<c:forEach items="${history}" var="h">
				<tr>
					<td>${h.mName}</td>
					<td><img src="${ctx }/sec/image${h.heading }" width="200px" height="150px"/></td>
					<td><img src="${ctx }/sec/image${h.idcard }" width="200px" height="150px"/></td>
					<td>${h.address}</td>
					<c:if test="${h.status==0}"><td>In Process</td></c:if>
					<c:if test="${h.status==1}"><td>Pass</td></c:if>
					<c:if test="${h.status==2}"><td>Reject</td></c:if>
					<td>${h.ban}</td>
					<td>${h.bcontent}</td>
				</tr>
			</c:forEach>
		</table>
	</div>
</body>
</html>